<!doctype html>


<html>
<head>
  <link rel="shortcut icon" href="static/images/favicon.ico" type="image/x-icon">
  <title>mediamodel.js (Closure Library API Documentation - JavaScript)</title>
  <link rel="stylesheet" href="static/css/base.css">
  <link rel="stylesheet" href="static/css/doc.css">
  <link rel="stylesheet" href="static/css/sidetree.css">
  <link rel="stylesheet" href="static/css/prettify.css">

  <script>
     var _staticFilePath = "static/";
     var _typeTreeName = "goog";
     var _fileTreeName = "Source";
  </script>

  <script src="static/js/doc.js">
  </script>


  <meta charset="utf8">
</head>

<body onload="grokdoc.onLoad();">

<div id="header">
  <div class="g-section g-tpl-50-50 g-split">
    <div class="g-unit g-first">
      <a id="logo" href="index.html">Closure Library API Documentation</a>
    </div>

    <div class="g-unit">
      <div class="g-c">
        <strong>Go to class or file:</strong>
        <input type="text" id="ac">
      </div>
    </div>
  </div>
</div>





<div class="colmask rightmenu">
<div class="colleft">
    <div class="col1">
      <!-- Column 1 start -->

<div id="title">
       <span class="fn">mediamodel.js</span>
</div>

<div class="g-section g-tpl-75-25">
  <div class="g-unit g-first" id="description">
    Provides the base media model consistent with the Yahoo Media
 RSS specification <a href="http://search.yahoo.com/mrss/">http://search.yahoo.com/mrss/</a>.
  </div>
  

        <div class="g-unit" id="useful-links">
          <div class="title">Useful links</div>
          <ol>
            <li><a href="closure_goog_ui_media_mediamodel.js.source.html"><span class='source-code-link'>Source Code</span></a></li>
            <li><a href="http://code.google.com/p/closure-library/source/browse/closure/goog/ui/media/mediamodel.js">Git</a></li>
          </ol>
        </div>
</div>

<h2 class="g-first">File Location</h2>
  <div class="g-section g-tpl-20-80">
    <div class="g-unit g-first">
      <div class="g-c-cell code-label">ui/media/mediamodel.js</div>
    </div>
  </div>
<hr/>


  <h2>Classes</h2>
 <div class="fn-constructor">
        <a href="class_goog_ui_media_MediaModel.html">
          goog.ui.media.MediaModel</a><br/>
        <div class="class-details">An base data value class for all media data models.

MediaModels are exact matches to the fields defined in the Yahoo RSS media
specification <a href="http://search.yahoo.com/mrss/">http://search.yahoo.com/mrss/</a>.

The current common data shared by medias is to have URLs, mime types,
captions, descriptions, thumbnails and players. Some of these may not be
available, or applications may not want to render them, so <code>null</code>
values are allowed. <code>goog.ui.media.MediaRenderer</code> checks whether the
values are available before creating DOMs for them.

TODO(user): support asynchronous data models by subclassing
goog.events.EventTarget or goog.ds.DataNode. Understand why
<a href="http://goto/datanode">http://goto/datanode</a> is not available in closure. Add setters to
MediaModel once this is supported.</div>
 </div>
 <div class="fn-constructor">
        <a href="class_goog_ui_media_MediaModel_Category.html">
          goog.ui.media.MediaModel.Category</a><br/>
        <div class="class-details">A taxonomy to be set that gives an indication of the type of media content,
and its particular contents.</div>
 </div>
 <div class="fn-constructor">
        <a href="class_goog_ui_media_MediaModel_Credit.html">
          goog.ui.media.MediaModel.Credit</a><br/>
        <div class="class-details">Indicates an entity that has contributed to a media object. Based on
'media.credit' in the rss spec.</div>
 </div>
 <div class="fn-constructor">
        <a href="class_goog_ui_media_MediaModel_Player.html">
          goog.ui.media.MediaModel.Player</a><br/>
        <div class="class-details">Constructs a player containing details of the player's URL and
optionally its size.</div>
 </div>
 <div class="fn-constructor">
        <a href="class_goog_ui_media_MediaModel_SubTitle.html">
          goog.ui.media.MediaModel.SubTitle</a><br/>
        <div class="class-details">A reference to the subtitle URI for a media object.
Implements the 'media.subTitle' in the rss spec.</div>
 </div>
 <div class="fn-constructor">
        <a href="class_goog_ui_media_MediaModel_Thumbnail.html">
          goog.ui.media.MediaModel.Thumbnail</a><br/>
        <div class="class-details">Constructs a thumbnail containing details of the thumbnail's image URL and
optionally its size.</div>
 </div>
      
<br/>

  <div class="legend">
        <span class="key publickey"></span><span>Public</span>
        <span class="key protectedkey"></span><span>Protected</span>
        <span class="key privatekey"></span><span>Private</span>
  </div>



<h2>Enumerations</h2>






<div class="section">
  <table class="horiz-rule">


  </table>
</div>




  <h2>Global Functions</h2>





<div class="section">
  <table class="horiz-rule">


     <tr class="even entry public">
       <td class="access"></td>






  <td>
    <a name="goog.ui.media.MediaModel.call"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace">goog.ui.media.MediaModel.</span><span class="entryName">call<span class="args">()</span>
        </span>
      </div>


     <div class="entryOverview">
       <span class='nodesc'>No description.</span>
     </div>

   
  </td>


  <td class="view-code">
     <a href="closure_goog_ui_media_mediamodel.js.source.html#line62">code &raquo;</a>
  </td>
     </tr>


  </table>
</div>






      <!-- Column 1 end -->
    </div>

        <div class="col2">
          <!-- Column 2 start -->
          <div class="col2-c">
            <h2 id="ref-head">Directory media</h2>
            <div id="localView"></div>
          </div>

          <div class="col2-c">
            <h2 id="ref-head">File Reference</h2>
            <div id="sideFileIndex" rootPath="" current="ui/media/mediamodel.js"></div>
          </div>
          <!-- Column 2 end -->
        </div>
</div>
</div>

</body>
</html>
